package org.qqcui.designpattern.patterns.adapter.springmvc;

/**
 * Http请求的适配器实现
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/4/28 17:39
 **/
public class HttpHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return handler instanceof HttpController;
    }

    @Override
    public void handle(Object handler) {
        ((HttpController) handler).doHttpHandler();
    }
}
